package com.authority.entry;

import java.util.Date;
import java.util.List;

/**
 * Description:菜单（资源权限控制）
 * 
 * @author limeng.g
 * Date 2015-09-06
 */
public class AuthMenuDO {

	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 创建时间
	 */
	private Date gmtCreate;

	/**
	 * 修改时间
	 */
	private Date gmtModified;

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 代码（唯一）
	 */
	private String code;

	/**
	 * 资源url(只有叶子节点有url)
	 */
	private String url;

	/**
	 * 父菜单id，Default=0
	 */
	private Long parentId;

	/**
	 * 状态（1=正常；-1=注销）@authMenu.status
	 */
	private Integer status;

	/**
	 * 扩展字段
	 */
	private String feature;

	/**
	 * 操作人
	 */
	private Long operatorId;

	/**
	 * 子节点
	 */
	private List<AuthMenuDO> childs;
	
	/**
	 * 顺序号
	 */
	private Integer num;
	
	/**
	 * 系统id
	 */
	private Long sysId;

	/**
	 * 是否叶子节点
	 */
	private Integer isLeaf;
	
	private String icon;
	
	private Integer menutype;
	
	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Long getSysId() {
		return sysId;
	}

	public void setSysId(Long sysId) {
		this.sysId = sysId;
	}

	/**
	 * setter for column 主键
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * getter for column 主键
	 */
	public Long getId() {
		return this.id;
	}

	/**
	 * setter for column 创建时间
	 */
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	/**
	 * getter for column 创建时间
	 */
	public Date getGmtCreate() {
		return this.gmtCreate;
	}

	/**
	 * setter for column 修改时间
	 */
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	/**
	 * getter for column 修改时间
	 */
	public Date getGmtModified() {
		return this.gmtModified;
	}

	/**
	 * setter for column 名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * getter for column 名称
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * setter for column 代码（唯一）
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * getter for column 代码（唯一）
	 */
	public String getCode() {
		return this.code;
	}

	/**
	 * setter for column 资源url(只有叶子节点有url)
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * getter for column 资源url(只有叶子节点有url)
	 */
	public String getUrl() {
		return this.url;
	}

	/**
	 * setter for column 父菜单id，Default=0
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	/**
	 * getter for column 父菜单id，Default=0
	 */
	public Long getParentId() {
		return this.parentId;
	}

	/**
	 * setter for column 状态（1=正常；-1=注销）@authMenu.status
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * getter for column 状态（1=正常；-1=注销）@authMenu.status
	 */
	public Integer getStatus() {
		return this.status;
	}

	/**
	 * setter for column 扩展字段
	 */
	public void setFeature(String feature) {
		this.feature = feature;
	}

	/**
	 * getter for column 扩展字段
	 */
	public String getFeature() {
		return this.feature;
	}

	/**
	 * setter for column 操作人
	 */
	public void setOperatorId(Long operatorId) {
		this.operatorId = operatorId;
	}

	/**
	 * getter for column 操作人
	 */
	public Long getOperatorId() {
		return this.operatorId;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public List<AuthMenuDO> getChilds() {
		return childs;
	}

	public void setChilds(List<AuthMenuDO> childs) {
		this.childs = childs;
	}

	public Integer getIsLeaf() {
		return isLeaf;
	}

	public void setIsLeaf(Integer isLeaf) {
		this.isLeaf = isLeaf;
	}

	public Integer getMenutype() {
		return menutype;
	}

	public void setMenutype(Integer menutype) {
		this.menutype = menutype;
	}
	
}